<?php

// +----------------------------------------------------------------------
// | 微信菜单表
// +----------------------------------------------------------------------
// | Copyright (c) 2006-2013 dunkebiao All rights reserved.
// +----------------------------------------------------------------------
// | Licensed ( http://www.apache.org/licenses/LICENSE-2.0 )
// +----------------------------------------------------------------------
// | Author: dunkebiao <dunkebiao@163.com>
// +----------------------------------------------------------------------

namespace Home\Model;

use Think\Model;

class SucaiModel extends Model {

    public function __construct() {
        parent::__construct();
    }

    public function add_sucai($data) {

        return $this->add($data);
    }

    public function find_sucai($where, $field, $order) {

        return $this->where($where)->field($field)->order($order)->find();
    }

    public function select_sucai($where, $field, $order) {

        return $this->where($where)->field($field)->order($order)->select();
    }

    public function update_sucai($where, $data) {

        return $this->where($where)->save($data);
    }

}
